//
//  NPNavSearchView.h
//  newProject
//
//  Created by Mac mini on 2017/10/13.
//  Copyright © 2017年 zt. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NPSearchMaskView.h"

@protocol ShowPushMSGDelegate <NSObject>

-(void)showPushMessageTitle:(NSString *)title;

@end

@interface NPNavSearchView : UIView<UISearchBarDelegate>

@property(nonatomic,strong)UIButton *saoButton;
@property(nonatomic,strong)UISearchBar *searchBar;
@property(nonatomic,strong)NPSearchMaskView *maskView;

@property(nonatomic,strong)NSString *title;
@property(nonatomic,strong)NSString *imageName;

@property(nonatomic,assign)BOOL isSelect;

//@property(nonatomic,copy)void(^searchButtonCallBack)(BOOL isSelect);

@property(nonatomic,strong)UIViewController *controller;

@property(nonatomic,assign)id <ShowPushMSGDelegate>delegate;

//@property(nonatomic,assign)BOOL showSaoButton;

-(instancetype)initRightButtonWithTitle:(NSString *)title withButtonImage:(NSString *)imageName withController:(UIViewController *)controller;


-(void)setRightTitle:(NSString *)title;
-(void)setRightImage:(NSString *)imageName;

+(void)initF:(CGRect)frame;

@end
